<div class="title">Sổ theo dõi kết quả hành chính</div>
<div id="formVaoso">
	<?php echo $this->Form->create('Ketquahanhchinh', array('inputDefaults' => array('error' => false),'id'=>'XuLy')); ?>
	<div id="generalInfo">
		<p>
			<span class="title">Số văn bản</span>
			<span><?php echo $this->Form->input('so_van_ban', array('div' => false, 'label' => false,"style" => "width: 150px;"));?></span>
			<span class="title2" style="width: 100px;">Ký hiệu</span>
			<span><?php echo $this->Form->input('ky_hieu', array('div' => false, 'label' => false,"style" => "width: 80px;"));?></span>
			<span class="title2" readonly style="width: 100px;">Ngày ban hành</span>
			<span><?php echo $this->Form->input('ngay_ban_hanh_form', array('div' => false, 'label' => false,"style" => "width: 150px;", 'class' =>"datetime", "readonly"));?></span>
		</p>
		<p>
			<span class="title">Ngày có hiệu lực</span>
			<span><?php echo $this->Form->input('ngay_co_hieu_luc_form', array('div' => false, 'label' => false,"style" => "width: 150px;", 'class' =>"datetime", "readonly"));?></span>
			<span class="title2" style="width: 100px;">Ngày hết hiệu lực</span>
			<span><?php echo $this->Form->input('ngay_het_hieu_luc_form', array('div' => false, 'label' => false,"style" => "width: 80px;", 'class' =>"datetime", "readonly"));?></span>
			<span class="title2" style="width: 100px;">Người ký</span></span>
			<span><?php echo $this->Form->input('nguoi_ky', array('div' => false, 'label' => false,"style" => "width: 380px;"));?></span>
		</p>
		<p>
			<span class="title">Trích yếu</span>
			<span><?php echo $this->Form->input('trich_yeu', array('div' => false, 'label' => false,"style" => "width: 855px;"));?></span>
		</p>
		<p>
			<span class="title">Cơ quan ban hành</span>
			<span><?php echo $this->Form->input('co_quan_ban_hanh', array('div' => false, 'label' => false,"style" => "width: 422px;"));?></span>
		</p>
		<p>
			<span class="title">Phân loại KQHC</span>
			<?php echo
				$this->Form->input('loai_hinh_id',array(
                                      'type' => 'select',
                                      'options' => $loaihinhs,
                                      'selected' => 1,
                                      'div' => false,
                                      'label' => false
                                  ));
				?>
			<span class="title2">Lĩnh vực</span>
			<span><?php echo
				$this->Form->input('linh_vuc_id',array(
                                      'type' => 'select',
                                      'options' => $linhvucs,
                                      'selected' => 1,
                                      'div' => false,
                                      'label' => false
                                  ));
				?></span>
			<span class="title3">TTHC</span></span>
			<span><?php echo
				$this->Form->input('tthc_id',array(
                                      'type' => 'select',
                                      'options' => $tthcs,
                                      'selected' => 1,
                                      'div' => false,
                                      'label' => false
                                  ));
				?></span>
		</p>
		<p>
			<input type="radio" value="1" name="data[Ketquahanhchinh][loai_cap]" <?php echo $this->request->data['Ketquahanhchinh']['loai_cap'] == 1? "checked":"";?>/><span class="title">Cấp mới</span>
			<input type="radio" value="2" name="data[Ketquahanhchinh][loai_cap]" <?php echo $this->request->data['Ketquahanhchinh']['loai_cap'] == 2? "checked":"";?>/><span class="title">Cấp đổi</span>
			<input type="radio" value="3" name="data[Ketquahanhchinh][loai_cap]" <?php echo $this->request->data['Ketquahanhchinh']['loai_cap'] == 3? "checked":"";?>/><span class="title">Cấp lại</span>
			<input type="radio" value="4" name="data[Ketquahanhchinh][loai_cap]" <?php echo $this->request->data['Ketquahanhchinh']['loai_cap'] == 4? "checked":"";?>/><span class="title">Cấp bổ sung<span>
		</p>
	</div>
	<div id="donvi">
		<div class="canhan">
			<p>
				<span class="title"> </span>
				<span><input type="radio" value="1" name="data[Ketquahanhchinh][doi_tuong]" <?php echo $this->request->data['Ketquahanhchinh']['doi_tuong'] == 1? "checked":"";?> style = "margin:0px;"/> Cá nhân</span>
			</p>
			<p>
				<span class="title">Họ và tên</span>
				<span><?php echo $this->Form->input('ho_ten', array('div' => false, 'label' => false,"style" => "width: 200px;"));?></span>
				<span class="title3" style="width: 20px;"> </span>
				Nam <span><input name="data[Ketquahanhchinh][gioi_tinh]" type="radio" <?php echo $this->request->data['Ketquahanhchinh']['gioi_tinh'] == 1? "checked":"";?> value="1"/></span>
				Nữ <span><input name="data[Ketquahanhchinh][gioi_tinh]" type="radio" <?php echo $this->request->data['Ketquahanhchinh']['gioi_tinh'] == 2? "checked":"";?> value="2"/></span>
			</p>
			<p>			
				<span class="title">Ngày sinh</span>
				<span><?php echo $this->Form->input('ngay_sinh_form', array('div' => false, 'label' => false,"style" => "width: 200px;"));?></span>
			</p>
			<p>	
				<span class="title">Địa chỉ</span></span>
				<span><?php echo $this->Form->textarea('dia_chi', array('div' => false, 'label' => false,'style' => "width: 350px; height: 34px;"));?></span>
			</p>
			<p>	
				<span class="title">Nghề nghiệp</span></span>
				<span><?php echo $this->Form->input('nghe_nghiep', array('div' => false, 'label' => false,"style" => "width: 200px;"));?></span>
			</p>
			<p>	
				<span class="title">Số CMTND</span></span>
				<span><?php echo $this->Form->input('cmnd', array('div' => false, 'label' => false,"style" => "width: 200px;"));?></span>
			</p>
			<p>	
				<span class="title">Ngày cấp</span></span>
				<span><?php echo $this->Form->input('ngay_cap_form', array('div' => false, 'label' => false,"style" => "width: 200px;",'class' => "datetime"));?></span>
			</p>
			<p>
				<span class="title">Nơi cấp</span></span>
				<span><?php echo
				$this->Form->input('noi_cap',array(
                                      'type' => 'select',
                                      'options' => $thanhPhos,
                                      'selected' => '27',
                                      'div' => false,
                                      'label' => false,
                                      'style' => 'width: 200px;'
                                  ));
				?></span>
			</p>
		</div>
		<div class="tapthe">
			<p>
				<span class="title"> </span>
				<span><input type="radio" value="2" name="data[Ketquahanhchinh][doi_tuong]" <?php echo $this->request->data['Ketquahanhchinh']['doi_tuong'] == 2? "checked":"";?> style="margin:0px;"/> Tập thể</span>
			</p>
			<p>
				<span class="title">Tên đơn vị</span>
				<span><?php echo $this->Form->input('ten_don_vi', array('div' => false, 'label' => false,"style" => "width: 200px;"));?></span>
			</p>
			<p>	
				<span class="title">Loại hình</span>
				<span><input disabled="true" value="" style="width: 200px;"/></span>
			</p>
			<p>	
				<span class="title">Địa chỉ</span></span>
				<span><?php echo $this->Form->textarea('dia_chi_cty', array('div' => false, 'label' => false,'style' => "width: 350px; height: 34px;"));?></span>
			</p>
			<p>	
				<span class="title">Chuyên ngành</span></span>
				<span><?php echo $this->Form->input('chuyen_nganh', array('div' => false, 'label' => false,"style" => "width: 200px;"));?></span>
			</p>
			<p>	
				<span class="title">Mã số ĐV</span></span>
				<span><?php echo $this->Form->input('ma_don_vi', array('div' => false, 'label' => false,"style" => "width: 200px;"));?></span>
			</p>
			<p>	
				<span class="title">Ngày cấp</span></span>
				<span><?php echo $this->Form->input('ngay_cap_ma_form', array('div' => false, 'label' => false,"style" => "width: 200px;",'class' => "datetime"));?></span>
			</p>
			<p>
				<span class="title">Nơi cấp</span></span>
				<span><?php echo
				$this->Form->input('noi_cap',array(
                                      'type' => 'select',
                                      'options' => $thanhPhos,
                                      'selected' => '27',
                                      'div' => false,
                                      'label' => false,
                                      'style' => 'width: 200px;'
                                  ));
				?></span>
			</p>
		</div>
		<div class="clear"></div>
	</div>
	<p style="padding-left: 10px;">
		<span class="title">Văn bản gốc</span></span>
		<span><?php echo $this->Form->input('van_ban_goc', array('label' => false, 'type' => 'file'));?></span>
		<span><input value="1" name="data[Ketquahanhchinh][cong_bo_van_ban]" type="radio"/> Không công bố</span>
		<span><input value="2" name="data[Ketquahanhchinh][cong_bo_van_ban]" type="radio"/> Công bố</span>
		<span><input value="3" name="data[Ketquahanhchinh][cong_bo_van_ban]" type="radio"/> Công bố có thời hạn</span>
		<span><input value="" style="width: 50px; margin-left: 10px;"/> ngày</span>
	</p>
	<hr style="color: #1F7BC3;" />
	<div id="buttons" style="text-align: center;">
		<button class="button blue" id="duyet">Lưu</button>
		<?php echo $this->Html->link('Thoát',array('action' => 'ketquahanhchinh', $selectedHoso), array('id' => 'back', 'class' => 'button blue'));?>
		<div class="clear"></div>
	</div>
    <input type="hidden" name="data[Ketquahanhchinh][hoso_id]" value="<?php echo $selectedHoso;?>"/> 
	<?php echo $this->Form->end();?>
</div>
<script type="text/javascript">
	var form = $("#XuLy");
	$(document).ready(function (){
		$("input.datetime").datepicker({dateFormat:"dd/mm/yy",changeYear: true });
	});
</script>